<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css"
	href="<c:url value="/static/css/bootstrap.min.css" />">
<title>Login Page</title>
</head>
<body onload="document.loginForm.j_username.focus();">
	<h3>Please provide your credentials</h3>

	<c:if test="${loginPageModel.hasErrors}">
		<div class="error-block">
			Your login attempt was not successful, try again.<br /> Caused :
			${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}
		</div>
	</c:if>

	<form name="loginForm"
		action="<c:url value="j_spring_security_check" />" method="post">
		<table>
			<tr>
				<td>Email:</td>
				<td><input type="text" name="j_username" value=""></td>
			</tr>
			<tr>
				<td>Password:</td>
				<td><input type="password" name="j_password" /></td>
			</tr>
			<tr>
				<td colspan="2"><input class="btn btn-primary" name="login" type="submit"
					value="Login" /></td>
			</tr>
		</table>
	</form>
</body>
</html>